package com.itheima.service.db;

import com.itheima.domain.db.SoulQuestionOption;
import com.itheima.domain.vo.PageBeanVo;

import java.util.List;

public interface SoulQuestionOptionService {

    //根据问题的id查找选项
    List<SoulQuestionOption> findByQuestionId(Long id);

    //查分数
    SoulQuestionOption findScore(Long questionId, Long optionId);

    //查找所有选项
    PageBeanVo findOptionList(Integer page, Integer pagesize);
    //保存选项
    String save(SoulQuestionOption soulQuestionOption);
    //删除选项
    void deleteOptions(Long id);
    //回显
    SoulQuestionOption findById(Long id);
    //修改
    void updateOptions(SoulQuestionOption soulQuestionOption);
}
